<div class='top' onmousedown='sortable(this)' title='可以用鼠标拖拽来随意摆放哦'>
  <div class='title'>
    <%= link_to @setting.tool.name, 
          tools_zhui_tian_ya_hot_posts_url, 
          :target => :_blank,  
          :title => "#{@setting.tool.tool_type.name}-#{@setting.tool.name}【#{@setting.tool.version}】-#{sanitize_all @setting.tool.synopsis}"  %>
  </div>
  <div class='supports'>
    
  </div>
  <div class='tools'>
      <%#= link_to_remote "移除", 
            :confirm => '确认要扔掉这片吐司吗？',
            :url => tools_zhui_tian_ya_hot_post_url(@setting),
            :method => :delete,
            :loading => "Effect.Fade('portalet_#{@setting.id}')",
            :html => {
              :class => :h 
            }            
        #%>
        <%= link_to '我追',new_tools_zhui_tian_ya_hot_post_url, :target => :_blank, :title => '我也追个帖' %>
        <%= link_to '瞧瞧',tools_zhui_tian_ya_hot_posts_url, :target => :_blank, :title => '瞧瞧大家都在追什么' %>
    </span>
  </div>
</div>
<div id='tool_<%= @setting.id %>_content' class='content'>
  <div class='zhui_tian_ya'>
    <div class='line'>
      <div class='title'>
        我的追天涯
      </div>
      <div class='hot_posts'>
        <% @follows.top(5).each do |setting| %>
        <div class='hot_post'>
          <div class='title'>
            <%= link_to setting.hot_post.title, tools_zhui_tian_ya_hot_post_url(setting.hot_post),
                  :title => "『#{setting.hot_post.hot_post_type.name}』#{setting.hot_post.title}-#{t setting.hot_post.status}",
                  :target => :_blank,
                  :class => setting.hot_post.status %>
            <div class='stat' title ='已阅读<%= number_with_precision setting.read_schedule_percent, :precision => 2 %>%'>
              <b><%= number_with_precision setting.read_schedule_percent, :precision => 2 %>%</b>
            </div>
          </div>
        </div>
        <% end %>
        <div class='more'>
          <%= link_to "更多(<b>#{@follows.size}</b>)...", tools_zhui_tian_ya_hot_posts_url, :target => :_blank %>
        </div>
      </div>
    </div>
    <div class='line new'>
      <div class='title'>
        <%= image_tag 'tools/zhui_tian_ya/new.png' %>
      </div>
      <div class='hot_posts'>
        <% @news.each do |hot_post| %>
        <div class='hot_post'>
          <div class='title'>
            <%= link_to hot_post.title, tools_zhui_tian_ya_hot_post_url(hot_post),
                  :title => "『#{hot_post.hot_post_type.name}』#{hot_post.title}-#{t hot_post.status}",
                  :target => :_blank,
                  :class => hot_post.status %>
          </div>
        </div>
        <% end %>
        <div class='more'>
          <%= link_to '更多...', tools_zhui_tian_ya_hot_posts_url, :target => :_blank %>
        </div>
      </div>
    </div>
    <div class='line hot'>
      <div class='title'>
        <%= image_tag 'tools/zhui_tian_ya/hot.png' %>
      </div>
      <div class='hot_posts'>
        <% @hots.each do |hot_post| %>
        <div class='hot_post'>
          <div class='title'>
            <%= link_to hot_post.title, tools_zhui_tian_ya_hot_post_url(hot_post),
                  :title => "『#{hot_post.hot_post_type.name}』#{hot_post.title}-#{t hot_post.status}",
                  :target => :_blank,
                  :class => hot_post.status %>
          </div>
        </div>
        <% end %>
        <div class='more'>
          <%= link_to '更多...', tools_zhui_tian_ya_hot_posts_url, :target => :_blank %>
        </div>
      </div>
    </div>
  </div>  
</div>

  